package com.learn.event;

import java.io.Serializable;
import org.springframework.context.ApplicationEvent;

/**
 * @Author:Mark
 * @Description:
 * @Date: Created on 11:00 2018-11-13
 * @Modify by:
 */
public class DemoEvent extends ApplicationEvent implements Serializable {

  private static final long serialVersionUID = 4772675162546953809L;

  private String msg;

  public DemoEvent(Object source) {
    super(source);
  }

  public DemoEvent(Object source, String msg) {
    super(source);
    this.msg = msg;
  }

  public String getMsg() {
    return msg;
  }

  public void setMsg(String msg) {
    this.msg = msg;
  }
}
